package com.feng.cloud.common.exception.auth;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName ResultStatus
 * @Description TODO
 * @Author Better Feng
 * @Date 2019/12/17 10:14
 * @Version 1.0
 **/
@Getter
@AllArgsConstructor
public enum AuthStatus {

    AUTHORIZED_SERVER_ERROR(500,"认证服务器异常"),
    VALIDATE_CODE_KEY_EMPTY(500,"验证码key不能为空"),
    CAPTCHA_VERIFICATION_CODE_EMPTY(500,"滑动验证码校验码不能为空"),
    VALIDATE_CODE_INVALID(500,"验证码已过期"),
    USERNAME_OR_PASSWORD_ERROR(500,"用户名或密码错误"),
    USER_FORBIDDEN(403,"没有权限访问该资源"),
    UNAUTHORIZED(401,"token无效"),
    REFRESH_TOKEN_INVALID(4011,"验证码已过期"),
    VALIDATE_CODE_ERROR(500,"验证码错误"),
    VALIDATE_CODE_VALUE_EMPTY(500,"请输入验证码");

    private int status;
    private String message;
}
